<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Classify extends Model
{
    protected $table='classify';
    protected $primaryKey='classify_id';
    protected $fillable=[
      'pa_id','img','name','sort','level'
    ];
    public $timestamps=false;

    protected $hidden=[
        'img',
    ];
    public function my_img()
    {
        return $this->hasOne('App\Models\Pictures','pic_id','img');
    }


}
